<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.translate.js"></script>

<script type="text/javascript">
function translate_yoo(){
	
	var cek = $('#cek').text();
	console.log('masuk');
	$.translate(cek , 'en', 'id', {
		  complete: function(translation){ alert(translation) }
	});
}
</script>

</head>
<body>
	<p id='cek'>Usage Simply include the plugin after jQuery, it loads all
		the necessary stuff from Google. (If you can load the jsapi.js or the
		language API before, they won't be loaded again.)</p>
	Load
	<input type="button" onclick="javascript:translate_yoo()" value='translete' >
</body>
</html>
